package com.cn.enums;

import com.cn.http.impl.FileUpload;

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.util.Map;

/**
 * &#064;Time 2024 八月 星期日 00:03
 *
 * @author ShangGuan
 */
public interface TypeBody {


    /**
     * 转化为对应字符串
     *
     * @param param param
     * @return {@link String }
     */
    String to(Map<String, Object> param);

    String getHeader();

    void write(OutputStream out,String body,FileUpload fileUpload) throws IOException;

}
